// components/spu-scroll/index.js
Component({
    //添加外部样式类
    externalClasses: ['l-class'],
    /**
     * 组件的属性列表
     */
    properties: {
        theme: Object,
        spuList: Array
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        spuGotoDetail(event) {
            console.log(event);
            const spuId = event.currentTarget.dataset.spuId
            wx.navigateTo({
                url: `/pages/detail/detail?pid=${spuId}`,
            });
        }
    }
})
